<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script crossorigin="anonymous" integrity="sha384-HHKD5G6fqvxz/wBz7BFYeOPzBKELGIZv5l5HAECcXD3zdAS6n8OppmPH9ZxGXY0G" src="https://lib.baomitu.com/socket.io/2.3.0/socket.io.js"></script>
    <style>
        body {
            padding:20px;
        }
        #console {
            overflow: auto;
        }
        .username-msg {color:orange;}
        .connect-msg {color:green;}
        .disconnect-msg {color:red;}
        .send-msg {color:#888}
    </style>

</head>

<body>

<h1>课程上架通知</h1>

<br/>

<div id="console" class="well">
</div>
<div id="msg"></div>
</body>



<script type="text/javascript">
    var socket =  io.connect('http://localhost:8899/push');

    socket.on('connect', function() {

    });

    socket.on('message', function(data) {
        $("#msg").html(data);
    });

    socket.on('disconnect', function() {

    });
    function sendDisconnect() {
        socket.disconnect();
    }



</script>
</html>